$(function(){
	initDataGrid();
});

//动态加载datagrid
function initDataGrid(){
	var _datagrid=$('#datagrid');
	_datagrid.datagrid({
		url:rootPath +'/authority/list',
		striped:true,
		singleSelect:true,
		height:320,
		columns:[[
			{field:'authID',title:'资源ID',width:143},
			{field:'authName',title:'资源名称',width:200},
			{field:'authDisName',title:'资源显示名称',width:200},
			{field:'authURL',title:'资源url',width:200}
		]],
		pagination:true
	});
}